package com.hxh.exception.handler.exception;

import lombok.Getter;


@Getter
public class CustomException extends RuntimeException {

    /**
     * 异常对应的错误类型
     */
    private final String code;

    private final String message;


    public CustomException(String message, String code) {
        this.code = code;
        this.message = message;
    }
}
